﻿using AutoMapper;
using Masuit.Tools.Core.IOC;
using Microsoft.Extensions.DependencyInjection;

namespace Masuit.MyBlogs.Core.Extensions
{
    public static class MapperHelper
    {

        public static T Mapper<T>(this object source) where T : class => IocHelper.ServiceProvider.GetRequiredService<IMapper>().Map<T>(source);


    }
}
